//
//  RGMainPageViewModel.h
//  RedGrass
//
//  Created by wukong on 2019/1/10.
//  Copyright © 2019年 hongcaosp. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RGMainPageViewProtocol.h"
#import "RGRecommendVideoModel.h"
#import "RGRecommentListModel.h"

NS_ASSUME_NONNULL_BEGIN


@interface RGMainPageViewModel : NSObject


//视频列表
@property (strong, nonatomic) NSMutableArray<RGRecommendVideoModel *> *videoList; //推荐视频列表
@property (assign, nonatomic) NSInteger pagaNum;
@property (assign, nonatomic) NSInteger total;


//评论列表
@property (strong, nonatomic) NSMutableArray *mainCommentList;//主评论列表
@property (assign, nonatomic) NSInteger mainCommentPageNum;
@property (assign, nonatomic) NSInteger mainCommentTotal;
@property (assign, nonatomic) NSInteger currentVedioId; //当前的视频id
@property (assign, nonatomic) NSInteger currentVedioIndex;//当前视频的path



-(instancetype) initWithProtocol:(id<RGMainPageViewProtocol>)protocol;

//获取推荐视频列表
-(void) gainRecommendVideoListWithPageNumIsFirstLoad:(BOOL)isFirstLoad isLoadMore:(BOOL)isLoadMore;

//关注，取消关注
-(void) changeFocusStatusWithChosedIndex:(NSInteger) chosedIndex;

//喜欢，点赞
-(void) changeFavoriteStautswithChosedIndex:(NSInteger) chosedIndex;

//获取评论列表,更多评论,首次
-(void) gainVideoRecommentListWithChosedIndex:(NSInteger) chosedIndex isGainMore:(BOOL)isGainMore isShowLoading:(BOOL)isShowLoading;

//刷新评论列表
-(void) gainVideoRecommentListWithIsGainMore:(BOOL)isGainMore;

//主评论点赞
-(void) changeMainCommentFavoriteStautswithChosedIndex:(NSInteger)chosedIndex;

//子评论点赞
-(void) changeChildCommentFavoriteStautswithChosedIndex:(NSIndexPath*)path;

//发表主评论
-(void) addMainCommentWithContent:(NSString *)content;

//发表子评论
-(void) addChildCommentWithContent:(NSString *)content chosedIndexPath:(NSIndexPath *)path chosedIndex:(NSInteger)chosedIndex;

//转发视频
-(void) shareVideoWithContent:(NSString *)content chosedIndex:(NSInteger)index;

-(void) pushToChatVcWithChosedVedioIndex:(NSInteger) index;

-(void) pushToPersonalVcWithChosdeVedioIndex:(NSInteger)index;

//弹出登录页面
-(void) showLoginViewWhenHaveNoToken;

//扫一扫界面
-(void) showScanViewController;

//搜索页面
-(void) showSearchViewController;

//分享到微信
-(void) shareToWeChatWithChosedVedioIndex:(NSInteger) index;

//下载
-(void) downLoadVedioWithChosedVedioIndex:(NSInteger) index;

//更新播放量
-(void) updateVeidoPlayCountsWithChosedVedioIndex:(NSInteger)index;

//修改tabbar透明度
-(void) changeTabbarUiStyleWithChosedVedioIndex:(NSInteger)index;

@end

NS_ASSUME_NONNULL_END
